package com.vader.flea.dao;

import com.vader.flea.entity.Shop;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShopDao {
    /**
     *
     * @param shopConditon  查询条件
     * @param rowIndex  开始取数据的坐标行
     * @param pageSize  取得数据的总行数
     * @return
     */
    List<Shop> queryShopList(@Param("shopCondition")Shop shopConditon,
                             @Param("rowIndex")int rowIndex,
                             @Param("pageSize")int pageSize);

    int queryShopCount(@Param("shopCondition")Shop shopConditon);

    int insertShop(Shop shop);

    int updateShop(Shop shop);

    Shop queryByShopId(Long shopId);
}
